package org.dingyom.gift.clients;

import org.dingyom.gift.domain.LoginUser;
import org.dingyom.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "GIFT-AUTH",fallbackFactory = LoginUserClientFallbackFactory.class)
public interface LoginUserClient {
    @PostMapping("/loginUser/loginUser")
    public AjaxResult saveUser(@RequestBody LoginUser loginuser);

    @GetMapping("/oauth/test/{id}")
    public AjaxResult oauthTest(@PathVariable("id") Long id);
}

